package miiteen.twoexploit.beans;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import miiteen.common.json.jackson.LongSerialize;
import miiteen.common.utils.FieldMeta;
import miiteen.sys.base.bean.BasePo;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * Name: lzhg_two_file
 * Des: -Bean
 * Author: qyp
 * Date: 2021-10-20
 * 文件上传
 */
public class Filedownload extends BasePo {

    @FieldMeta(name = "")
    private long id;


    @FieldMeta(name = "模块id")
    private long lzhId;


    @FieldMeta(name = "名称")
    private String name;

    @FieldMeta(name = "附件路径")
    private String url;



    @FieldMeta(name = "是否显示")
    private int isDisplay;


    @FieldMeta(name = "删除状态")
    private int delState;


    @FieldMeta(name = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")

    private Date createDate;

    @FieldMeta(name = "创建人id")
    private long createId;


    @FieldMeta(name = "修改时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateDate;


    @FieldMeta(name = "修改人id")
    private long updateId;

    @JsonSerialize(using = LongSerialize.class)
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }
    @JsonSerialize(using = LongSerialize.class)
    public long getLzhId() {
        return lzhId;
    }

    public void setLzhId(long lzhId) {
        this.lzhId = lzhId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public int getIsDisplay() {
        return isDisplay;
    }

    public void setIsDisplay(int isDisplay) {
        this.isDisplay = isDisplay;
    }

    public int getDelState() {
        return delState;
    }

    public void setDelState(int delState) {
        this.delState = delState;
    }
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    @JsonSerialize(using = LongSerialize.class)
    public long getCreateId() {
        return createId;
    }

    public void setCreateId(long createId) {
        this.createId = createId;
    }
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    @JsonSerialize(using = LongSerialize.class)
    public long getUpdateId() {
        return updateId;
    }

    public void setUpdateId(long updateId) {
        this.updateId = updateId;
    }
}
